/* ===========================================
   COMPONENT STYLES
   ========================================= */
@import url('tokens.css');
@import url('base.css');

/* Buttons */
.btn-luxury, .btn-secondary-custom, .search-button, .submit-button, .filter-btn, button {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.85em 2.2em;
  border-radius: 9999px;
  border: 2.5px solid var(--color-gold);
  background: linear-gradient(120deg, var(--color-gold) 0%, var(--color-dark-gold) 100%);
  color: #fff;
  box-shadow: 0 4px 32px 0 rgba(201,162,39,0.18), 0 1.5px 0 #fff4 inset;
  text-shadow: 0 1px 8px #fff8, 0 0 4px var(--color-gold);
  letter-spacing: 0.03em;
  transition: all 0.35s cubic-bezier(0.68,-0.55,0.27,1.55), box-shadow 0.5s cubic-bezier(0.68,-0.55,0.27,1.55);
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
}
.btn-luxury:hover, .btn-secondary-custom:hover, .search-button:hover, .submit-button:hover, .filter-btn:hover, button:hover {
  background: linear-gradient(120deg, var(--color-bright-gold) 0%, var(--color-gold) 100%);
  color: var(--color-dark-brown);
  box-shadow: 0 6px 40px 0 rgba(201,162,39,0.28), 0 2px 0 #fff8 inset;
  text-shadow: 0 2px 12px #fff8, 0 0 8px var(--color-bright-gold);
}
.btn-luxury:focus, .btn-secondary-custom:focus, .search-button:focus, .submit-button:focus, .filter-btn:focus, button:focus {
  box-shadow: 0 0 0 4px var(--color-light-gold), 0 4px 32px 0 rgba(201,162,39,0.18);
  outline: none;
}

/* Cards */
.portfolio-card-luxury, .skill-card, .stat-card, .testimonial-card, .blog-card {
  background: var(--color-warm-beige);
  border-radius: 2.5rem;
  box-shadow: 0 8px 48px 0 rgba(201,162,39,0.18), 0 2px 0 #fff8 inset;
  padding: 1.5rem 1.1rem 1.1rem 1.1rem;
  max-width: 420px;
  width: 100%;
  margin: 2.5rem auto 0 auto;
  transition: box-shadow 0.3s cubic-bezier(0.68,-0.55,0.27,1.55), transform 0.3s cubic-bezier(0.68,-0.55,0.27,1.55);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 480px;
  max-height: 560px;
  padding-bottom: 2.2rem;
  position: relative;
}
.portfolio-card-luxury:hover, .skill-card:hover, .stat-card:hover, .testimonial-card:hover, .blog-card:hover {
  box-shadow: 0 16px 64px 0 rgba(201,162,39,0.22), 0 4px 0 #fff8 inset;
  transform: translateY(-6px) scale(1.035);
}
@media (max-width: 900px) {
  .portfolio-card-luxury, .skill-card, .stat-card, .testimonial-card, .blog-card {
    min-height: 370px;
    max-height: 440px;
    padding-bottom: 1.3rem;
  }
}
@media (max-width: 600px) {
  .portfolio-card-luxury, .skill-card, .stat-card, .testimonial-card, .blog-card {
    min-height: 260px;
    max-height: 340px;
    padding-bottom: 0.7rem;
  }
}

/* Progress Bar */
.progress-bar {
  position: relative;
  background: var(--color-tan);
  border-radius: var(--radius-full);
  height: 18px;
  margin-top: 8px;
  overflow: hidden;
}
.progress-bar span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-gold);
  font-weight: 700;
}

/* Tag Pills */
.tag-pill {
  display: inline-block;
  background: var(--color-light-gold);
  color: var(--color-dark-brown);
  border-radius: var(--radius-full);
  padding: 0.25em 1em;
  font-size: 0.95em;
  margin: 0 0.25em 0.5em 0;
  font-weight: 600;
  box-shadow: 0 1px 4px 0 rgba(201,162,39,0.08);
  transition: background 0.2s, color 0.2s;
}
.tag-pill:hover {
  background: var(--color-gold);
  color: #fff;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  background: var(--color-gold);
  color: #fff;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 12px 0 rgba(201,162,39,0.18);
  padding: 0.8em 1.2em;
  font-size: 1.5rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
}
.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-to-top:hover {
  background: var(--color-bright-gold);
  color: var(--color-dark-brown);
}

.logo-link img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2.5px solid var(--color-gold);
  box-shadow: 0 2px 16px 0 rgba(201,162,39,0.18);
  object-fit: cover;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.68,-0.55,0.27,1.55), box-shadow 0.25s cubic-bezier(0.68,-0.55,0.27,1.55);
  margin-right: var(--spacing-4);
  display: inline-block;
}
.logo-link img:hover, .logo-link img:focus {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 4px 32px 0 rgba(201,162,39,0.28), 0 0 12px #FFD700;
}
@media (max-width: 600px) {
  .logo-link img {
    width: 36px;
    height: 36px;
  }
}

/* Portfolio Card: Angled corners */
.portfolio-card-luxury {
  clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
  background: var(--color-warm-beige);
  border-radius: 2.5rem 0 2.5rem 0;
  box-shadow: 0 8px 48px 0 rgba(201,162,39,0.18), 0 2px 0 #fff8 inset;
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 420px;
  width: 100%;
  margin: 2.5rem auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
/* Skill Card & Stat Card: Unified pill shape and style */
.skill-card, .stat-card {
  padding: 1rem 1.2rem;
  min-height: 120px;
  max-height: 180px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-light-gold) 0%, var(--color-warm-beige) 100%);
  box-shadow: 0 4px 32px 0 rgba(201,162,39,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 auto;
}
.skill-card h3, .stat-card .stat-number {
  font-size: 1rem;
  margin-bottom: 0.15em;
}
.skill-card .progress-bar, .stat-card .stat-label {
  font-size: 0.92rem;
}
@media (max-width: 900px) {
  .skill-card, .stat-card {
    padding: 0.7rem 0.7rem;
    min-height: 90px;
    max-height: 120px;
  }
  .skill-card h3, .stat-card .stat-number {
    font-size: 0.92rem;
  }
  .skill-card .progress-bar, .stat-card .stat-label {
    font-size: 0.85rem;
  }
}
@media (max-width: 600px) {
  .skill-card, .stat-card {
    padding: 0.5rem 0.4rem;
    min-height: 60px;
    max-height: 90px;
  }
  .skill-card h3, .stat-card .stat-number {
    font-size: 0.85rem;
  }
  .skill-card .progress-bar, .stat-card .stat-label {
    font-size: 0.78rem;
  }
}
/* Testimonial Card: Speech bubble tail */
.testimonial-card {
  position: relative;
  border-radius: 2rem;
  background: var(--color-warm-beige);
  box-shadow: 0 8px 32px 0 rgba(201,162,39,0.13);
  padding: 2.2rem 2rem 2.5rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.testimonial-card::after {
  content: '';
  position: absolute;
  left: 2.5rem;
  bottom: -18px;
  width: 32px;
  height: 18px;
  background: var(--color-warm-beige);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  box-shadow: 0 4px 16px 0 rgba(201,162,39,0.10);
}
.testimonial-card .testimonial-quote {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  max-height: 7.7em;
  white-space: normal !important;
  word-break: break-word;
  font-size: 1.02rem;
  line-height: 1.5;
}
@supports not (-webkit-line-clamp: 5) {
  .testimonial-card .testimonial-quote {
    max-height: 7.7em;
    overflow: hidden;
  }
}
/* Blog Card: Wave bottom */
.blog-card {
  border-radius: 2.5rem 2.5rem 0 0;
  background: var(--color-warm-beige);
  box-shadow: 0 8px 32px 0 rgba(201,162,39,0.13);
  padding: 2.2rem 2rem 2.5rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.blog-card::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 100%;
  height: 32px;
  background: linear-gradient(180deg, var(--color-warm-beige) 60%, transparent 100%);
  border-bottom-left-radius: 2.5rem;
  border-bottom-right-radius: 2.5rem;
  z-index: 1;
}
/* Intra-card layout improvements */
.portfolio-card-luxury > *, .skill-card > *, .stat-card > *, .testimonial-card > *, .blog-card > * {
  margin-bottom: 0.5rem;
}
.portfolio-card-luxury h3, .skill-card h3, .stat-card .stat-number, .testimonial-card .testimonial-quote, .blog-card h3 {
  font-size: 1.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-bottom: 0.5rem;
}
.portfolio-card-luxury .portfolio-details, .blog-card .blog-snippet, .testimonial-card .testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.45;
  margin-bottom: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-height: 4.5em;
}
.portfolio-card-luxury .tag-pill, .skill-card .tag-pill, .stat-card .tag-pill, .testimonial-card .tag-pill, .blog-card .tag-pill {
  font-size: 0.85em;
  margin-bottom: 1.2rem;
  padding: 0.18em 0.8em;
}
.portfolio-card-luxury .portfolio-btn, .portfolio-card-luxury a.btn-luxury, .portfolio-card-luxury a.btn-secondary-custom {
  align-self: flex-end;
  margin-top: 2.5rem;
}
.portfolio-card-luxury .portfolio-client, .testimonial-card .testimonial-author {
  margin-top: 1.25rem;
  font-size: 1.05em;
  color: var(--color-medium-brown);
}
@media (max-width: 600px) {
  .portfolio-card-luxury .tag-pill {
    margin-bottom: 1.5rem;
  }
  .portfolio-card-luxury .portfolio-btn, .portfolio-card-luxury a.btn-luxury, .portfolio-card-luxury a.btn-secondary-custom {
    margin-top: 1.8rem;
  }
}

#darkModeToggle:focus, #darkModeToggle:active {
  box-shadow: none !important;
  outline: none !important;
  background: var(--color-light-gold);
  color: var(--color-dark-gold);
}

.skill-card .tag-pill, .stat-card .tag-pill, .testimonial-card .tag-pill, .blog-card .tag-pill {
  margin-bottom: 2rem;
}
.skill-card .btn-luxury, .stat-card .btn-luxury, .testimonial-card .btn-luxury, .blog-card .btn-luxury,
.skill-card .btn-secondary-custom, .stat-card .btn-secondary-custom, .testimonial-card .btn-secondary-custom, .blog-card .btn-secondary-custom {
  margin-top: auto;
  align-self: flex-end;
}
@media (max-width: 600px) {
  .skill-card .tag-pill, .stat-card .tag-pill, .testimonial-card .tag-pill, .blog-card .tag-pill {
    margin-bottom: 1.5rem;
  }
  .skill-card .btn-luxury, .stat-card .btn-luxury, .testimonial-card .btn-luxury, .blog-card .btn-luxury,
  .skill-card .btn-secondary-custom, .stat-card .btn-secondary-custom, .testimonial-card .btn-secondary-custom, .blog-card .btn-secondary-custom {
    margin-top: 1.8rem;
  }
}

/* Truncate tag containers if needed */
.portfolio-card-luxury .flex.flex-wrap, .blog-card .flex.flex-wrap, .skill-card .flex.flex-wrap, .stat-card .flex.flex-wrap, .testimonial-card .flex.flex-wrap {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Luxury Search Form Styles */
.search-form-base label {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
  display: block;
}
.search-form-base .input-luxury,
.search-form-base input[type="search"] {
  width: 100%;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 2.5px solid var(--color-gold);
  background: #fff8e1;
  color: var(--color-dark-brown);
  font-size: 1.08rem;
  font-family: var(--font-body);
  box-shadow: 0 2px 12px 0 rgba(201,162,39,0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 1em;
}
.search-form-base .input-luxury:focus,
.search-form-base input[type="search"]:focus {
  outline: none;
  border-color: var(--color-dark-gold);
  box-shadow: 0 0 0 3px var(--color-light-gold);
  background: #fffbe9;
}
.search-form-base .search-button {
  margin-left: 0.5em;
  border-radius: 999px;
  font-size: 1.08rem;
  padding: 0.85em 2.2em;
  background: linear-gradient(120deg, var(--color-gold) 0%, var(--color-dark-gold) 100%);
  color: #fff;
  border: 2.5px solid var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: 0 4px 32px 0 rgba(201,162,39,0.10), 0 1.5px 0 #fff4 inset;
  text-shadow: 0 1px 8px #fff8, 0 0 4px var(--color-gold);
  letter-spacing: 0.03em;
  transition: all 0.35s cubic-bezier(0.68,-0.55,0.27,1.55), box-shadow 0.5s cubic-bezier(0.68,-0.55,0.27,1.55);
  cursor: pointer;
}
.search-form-base .search-button:hover, .search-form-base .search-button:focus {
  background: linear-gradient(120deg, var(--color-bright-gold) 0%, var(--color-gold) 100%);
  color: var(--color-dark-brown);
  box-shadow: 0 6px 40px 0 rgba(201,162,39,0.18), 0 2px 0 #fff8 inset;
  text-shadow: 0 2px 12px #fff8, 0 0 8px var(--color-bright-gold);
}
@media (max-width: 600px) {
  .search-form-base .input-luxury,
  .search-form-base input[type="search"] {
    font-size: 0.98rem;
    padding: 0.7em 1em;
  }
  .search-form-base .search-button {
    font-size: 0.98rem;
    padding: 0.7em 1.3em;
  }
}

/* Luxury Contact Form Styles */
.contact-form-main label {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
  display: block;
}
.contact-form-main .input-luxury,
.contact-form-main input[type="text"],
.contact-form-main input[type="email"],
.contact-form-main textarea {
  width: 100%;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 2.5px solid var(--color-gold);
  background: #fff8e1;
  color: var(--color-dark-brown);
  font-size: 1.08rem;
  font-family: var(--font-body);
  box-shadow: 0 2px 12px 0 rgba(201,162,39,0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 1em;
  resize: none;
}
.contact-form-main textarea {
  border-radius: 0.7rem;
  min-height: 120px;
  max-height: 320px;
  resize: vertical;
  border: 2.5px solid var(--color-gold);
  background: linear-gradient(135deg, #fffbe9 60%, #fff8e1 100%);
  box-shadow: 0 2px 12px 0 rgba(201,162,39,0.08) inset, 0 1.5px 0 #fff4 inset;
  padding: 1.2em 1.7em;
  font-size: 1.08rem;
  color: var(--color-dark-brown);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form-main textarea:focus {
  outline: none;
  border-color: var(--color-dark-gold);
  box-shadow: 0 0 0 3px var(--color-light-gold), 0 2px 12px 0 rgba(201,162,39,0.12) inset;
  background: #fffbe9;
}
@media (max-width: 600px) {
  .contact-form-main .input-luxury,
  .contact-form-main input[type="text"],
  .contact-form-main input[type="email"],
  .contact-form-main textarea {
    font-size: 0.98rem;
    padding: 0.8em 1em;
  }
  .contact-form-main .submit-button {
    font-size: 0.98rem;
    padding: 0.7em 1.3em;
  }
  .contact-form-main textarea {
    font-size: 0.98rem;
    padding: 0.8em 1em;
    min-height: 80px;
    border-radius: 0.5rem;
  }
}
.contact-form-main .submit-button {
  margin-top: 1em;
  border-radius: 999px;
  font-size: 1.08rem;
  padding: 0.85em 2.2em;
  background: linear-gradient(120deg, var(--color-gold) 0%, var(--color-dark-gold) 100%);
  color: #fff;
  border: 2.5px solid var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: 0 4px 32px 0 rgba(201,162,39,0.10), 0 1.5px 0 #fff4 inset;
  text-shadow: 0 1px 8px #fff8, 0 0 4px var(--color-gold);
  letter-spacing: 0.03em;
  transition: all 0.35s cubic-bezier(0.68,-0.55,0.27,1.55), box-shadow 0.5s cubic-bezier(0.68,-0.55,0.27,1.55);
  cursor: pointer;
}
.contact-form-main .submit-button:hover, .contact-form-main .submit-button:focus {
  background: linear-gradient(120deg, var(--color-bright-gold) 0%, var(--color-gold) 100%);
  color: var(--color-dark-brown);
  box-shadow: 0 6px 40px 0 rgba(201,162,39,0.18), 0 2px 0 #fff8 inset;
  text-shadow: 0 2px 12px #fff8, 0 0 8px var(--color-bright-gold);
}

.icon-link-base, .contact-icons .icon-link-base, .footer-base .icon-link-base, .hero-content-base .icon-link-base {
  font-size: 2.2em;
  width: 2.5em;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: none;
  color: var(--color-gold);
  transition: color 0.2s, background 0.2s, transform 0.2s;
  margin: 0 0.35em;
  box-shadow: none;
}
.icon-link-base:hover, .icon-link-base:focus {
  color: #fff;
  background: none;
  transform: scale(1.13);
  box-shadow: none !important;
}
@media (max-width: 600px) {
  .icon-link-base, .contact-icons .icon-link-base, .footer-base .icon-link-base, .hero-content-base .icon-link-base {
    font-size: 1.7em;
    width: 2em;
    height: 2em;
    margin: 0 0.22em;
  }
} 