/* ============================================================================
   Stag Stitches - Custom Kilts & Highland Dancewear
   Professional CSS Stylesheet
   ============================================================================ */

/* === CSS RESET & BASE STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: 16px;
  line-height: 1.6;
  color: #0f172a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', ui-serif, Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  color: #0f172a;
}

h1 {
  font-size: 1.875rem;
  text-align: center;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.4375rem;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.025em;
}

p {
  line-height: 1.75;
  color: #334155;
}

/* === LAYOUT UTILITIES === */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

.section {
  padding: 3.5rem 0;
}

/* === HEADER === */
.utility-bar {
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

header {
  background-color: #ffffff;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  width: 200px;
  height: 200px;
  user-select: none;
}

.tagline {
  font-size: 1.125rem;
  color: #475569;
  text-align: center;
}

/* === NAVIGATION === */
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 1.5rem;
  font-size: 0.875rem;
  color: #475569;
}

nav a {
  transition: color 0.2s ease;
}

nav a:hover {
  color: #0f172a;
}

/* === MAIN CONTENT === */
main {
  min-height: 50vh;
}

.hero-section {
  padding-bottom: 3rem;
}

.hero-title {
  margin-top: 0.5rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: #475569;
  text-align: center;
  margin-top: 0.5rem;
}

.intro-text {
  margin-top: 2rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;
}

.intro-text p {
  margin-bottom: 1rem;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin: 1.5rem auto 2rem;
}

.intro-links .cta-button {
  margin: 0;
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  background-color: #ffffff;
  color: #0f172a;
  border-color: #0f172a;
}

.intro-cta {
  min-width: 0;
}

.intro-links .cta-button:hover,
.intro-links .cta-button:focus-visible {
  background-color: #0f172a;
  color: #ffffff;
}

.intro-cta-icon {
  position: relative;
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.intro-cta-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro-cta-icon .icon-dark {
  display: none;
}

.intro-links .cta-button:hover .intro-cta-icon .icon-light,
.intro-links .cta-button:focus-visible .intro-cta-icon .icon-light {
  display: none;
}

.intro-links .cta-button:hover .intro-cta-icon .icon-dark,
.intro-links .cta-button:focus-visible .intro-cta-icon .icon-dark {
  display: block;
}

/* === GRID LAYOUTS === */
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem auto 0;
  width: 100%;
  max-width: 80%;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 50%;
  }
}

@media (max-width: 640px) {
  .image-grid {
    max-width: 80%;
  }
}

/* === SERVICES SECTION === */
.services-section {
  margin-top: 5rem;
}

.services-section h2 {
  margin-bottom: 0.75rem;
}

.services-intro {
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-cards {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.service-card {
  width: 80%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.service-card.gradient-1 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.3) 100%);
}

.service-card.gradient-2 {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.3) 0%, rgba(255, 255, 255, 1) 100%);
}

.service-card-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.service-text {
  min-width: 0;
  flex: 1;
}

.service-title {
  font-size: 1rem;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.service-description {
  font-size: 0.9375rem;
  color: #475569;
  margin-top: 0.125rem;
  line-height: 1.5;
}

.service-image {
  flex-shrink: 0;
  align-self: flex-start;
  display: flex;
  justify-content: center;
}

.service-image img {
  width: 14rem;
  height: 14rem;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
}

.service-image.large img {
  width: 14rem;
  height: 14rem;
}

@media (max-width: 1024px) {
  .service-image img {
    width: 11rem;
    height: 11rem;
  }
}

.service-card-content.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .service-card {
    width: 100%;
  }

  .service-card-content {
    flex-direction: column;
    align-items: center;
    text-align: left;
    width: 100%;
  }

  .service-card-content.reverse {
    flex-direction: column;
  }

  .service-text {
    width: 100%;
    text-align: left;
  }

  .service-image {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
  }

  .service-image img,
  .service-image.large img {
    width: min(80vw, 350px);
    height: min(80vw, 350px);
  }
}

@media (max-width: 480px) {
  .service-image img,
  .service-image.large img {
    width: 9rem;
    height: 9rem;
  }
}

@media (max-width: 480px) {
  body {
    padding-left: 0.5rem;
  }
}

/* === BUTTONS === */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 5rem auto 0;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #0f172a;
  border: 1px solid #0f172a;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-button:hover {
  background-color: #ffffff;
  color: #0f172a;
}

.cta-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px #e2e8f0;
}

.cta-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cta-button-early {
  margin: 2rem auto 2.5rem;
}

/* === LOGO PLACEHOLDER === */
.logo-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.5rem auto 5rem;
  padding: 2rem;
}

.logo-placeholder img {
  width: 150px;
  height: 150px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.logo-placeholder img:hover {
  opacity: 0.8;
}

/* === TESTIMONIALS === */
.testimonial-section {
  width: 100%;
  max-width: 50%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  margin: 2.5rem auto 5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.testimonial-generic {
  max-width: 56%;
}

.testimonial-generic-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.testimonial-text .testimonial-title {
  margin: 0 0 0.75rem;
}

.testimonial-media {
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: #f1f5f9;
}

.testimonial-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.testimonial-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.testimonial-title {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.testimonial-controls {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-controls.hidden {
  display: none;
}

.testimonial-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background-color: #ffffff;
  color: #334155;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.testimonial-button:hover {
  background-color: #334155;
  color: #ffffff;
  border-color: #334155;
}

.testimonial-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px #e2e8f0;
}

.testimonial-button svg {
  width: 1rem;
  height: 1rem;
}

.testimonial-content {
  margin-top: 1.25rem;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.75;
  color: #1e293b;
}

.testimonial-author {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.5rem;
  font-size: 0.875rem;
  color: #475569;
}

.testimonial-name {
  font-weight: 500;
  color: #0f172a;
}

.testimonial-separator {
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .testimonial-section {
    max-width: 100%;
  }
}

@media (min-width: 900px) {
  .testimonial-generic-grid {
    grid-template-columns: 1.2fr 0.5fr;
  }
}

/* === PIPE BAND SECTION === */
.pipeband-section {
  margin-top: 2.5rem;
}

.pipeband-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .pipeband-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pipeband-text p {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;
}

.pipeband-text p + p {
  margin-top: 0.75rem;
}

.pipeband-image {
  overflow: hidden;
  background-color: #ffffff;
  border-radius: 0.5rem;
}

.pipeband-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* === ABOUT SECTION === */
.about-section {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  margin: 2.5rem auto;
  padding: 1.5rem;
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-image {
  flex-shrink: 0;
  display: flex;
}

.about-image img {
  width: 225px;
  height: 225px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
}

.about-text {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.about-text h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;
  margin-top: 0.5rem;
}

.about-text p.subtitle {
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: stretch;
  }

  .about-image {
    align-self: center;
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .about-text {
    width: 100%;
    text-align: left;
  }
}

/* === FEATURES SECTION === */
.features-section {
  background-color: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  padding: 3.5rem 1rem;
}

.features-header {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.features-header h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #0f172a;
  letter-spacing: -0.025em;
}

.features-header p {
  font-size: 1rem;
  line-height: 1.75;
  color: #475569;
  margin-top: 0.75rem;
}

.features-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  justify-items: center;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.feature-card.full-width {
  grid-column: span 2;
}

@media (min-width: 1024px) {
  .feature-card.full-width {
    grid-column: span 1;
  }
}

.feature-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.feature-content {
  padding: 1.25rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 500;
  color: #0f172a;
}

.feature-description {
  font-size: 0.875rem;
  color: #475569;
  margin-top: 0.25rem;
  line-height: 1.5;
}

/* === CONTACT SECTION === */
.contact-section {
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  background-color: #ffffff;
  padding: 4rem 1rem;
}

.contact-header {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.contact-header h2 {
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.contact-header p {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #475569;
}

.contact-form-wrapper {
  max-width: 36rem;
  margin: 2.5rem auto 0;
}

.contact-form {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background-color: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.input-wrapper {
  position: relative;
  margin-top: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  padding-right: 2.5rem;
  font-size: 0.875rem;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea {
  padding: 0.75rem;
  resize: vertical;
  font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 2px #e2e8f0;
}

.input-icon {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
}

.input-icon svg {
  width: 1rem;
  height: 1rem;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .form-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.form-note {
  font-size: 0.875rem;
  color: #64748b;
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.875rem;
  color: #475569;
}

.form-status.status-success {
  color: #047857;
}

.form-status.status-error {
  color: #b91c1c;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #0f172a;
  border: 1px solid #0f172a;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.submit-button:hover {
  background-color: #ffffff;
  color: #0f172a;
}

.submit-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px #e2e8f0;
}

.submit-button svg {
  width: 1rem;
  height: 1rem;
}

/* === FOOTER === */
footer {
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  background-color: #ffffff;
}

.footer-content {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

@media (min-width: 640px) {
  .footer-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #0f172a;
}

.footer-links svg {
  width: 1rem;
  height: 1rem;
}

.footer-links-grid {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-links-grid a {
  color: #475569;
  transition: color 0.2s ease;
}

.footer-links-grid a:hover {
  color: #0f172a;
}

.footer-about {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: #475569;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.copyright {
  font-size: 0.75rem;
  color: #64748b;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: #64748b;
}

.footer-legal a {
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #0f172a;
}

/* === LEGAL SECTIONS (PRIVACY & TERMS) === */
.legal-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.legal-main {
  padding-bottom: 3rem;
}

.legal-section h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.legal-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.legal-section h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.legal-section p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: #475569;
}

.legal-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: #475569;
}

.legal-section li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.legal-section a {
  color: #1e40af;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.legal-section a:hover {
  color: #1e3a8a;
}

.legal-actions {
  margin-top: 2.5rem;
}

.legal-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #0f172a;
  border: 1px solid #0f172a;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-home-button:hover {
  background-color: #ffffff;
  color: #0f172a;
}

/* === UTILITY CLASSES === */
.hidden {
  display: none;
}
