/* ==========================================================================
   J Sampath Digital Business Card - Stylesheet
   ========================================================================== */

/* Design Tokens & Variables */
:root {
  --primary-color: #8e040e;       /* Elegant Crimson */
  --primary-hover: #72030a;
  --secondary-color: #c59b27;     /* Golden Accent */
  --secondary-hover: #a6811e;
  --text-dark: #2c2c2c;           /* Primary text */
  --text-medium: #5a5a5a;         /* Body / Subtitles */
  --text-light: #8e8e8e;          /* De-emphasized text */
  --bg-light: #f8f9fc;            /* Warm off-white background */
  --bg-white: #ffffff;
  --border-color: #eaeef3;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Fonts */
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(142, 4, 14, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 15px 45px rgba(142, 4, 14, 0.06);
  --shadow-hover: 0 20px 40px rgba(142, 4, 14, 0.12);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 320px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout Utilities */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section-padding {
  padding: 48px 0;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--primary-color);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title-wrap svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

#my-businesses .section-title-wrap,
#services .section-title-wrap,
#social-media .section-title-wrap,
#featured-initiatives .section-title-wrap {
  margin-top: 12px;
}

@media (min-width: 769px) {
  #my-businesses.section-padding,
  #services.section-padding,
  #social-media.section-padding,
  #featured-initiatives.section-padding {
    padding-top: 16px;
  }

  #my-businesses .section-title-wrap,
  #services .section-title-wrap,
  #social-media .section-title-wrap,
  #featured-initiatives .section-title-wrap {
    margin-top: 0;
  }
}

/* Card Styling Base */
.card-base {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.card-base:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(142, 4, 14, 0.15);
}

/* Header & Profile Section */
.profile-header {
  background-color: var(--bg-white);
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

/* Decorative Background Gradients/Elements */
.profile-header::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 4, 14, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}

.profile-header-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.top-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: min(260px, 100%);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  flex-shrink: 1;
}

.top-buttons {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  min-width: 0;
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(142, 4, 14, 0.2);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--bg-white);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.2);
}

.btn-outline-gold {
  border: 1px solid var(--secondary-color);
  color: var(--secondary-hover);
  background-color: transparent;
}

.btn-outline-gold:hover {
  background-color: rgba(197, 155, 39, 0.05);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: rgba(142, 4, 14, 0.03);
  border-color: var(--primary-color);
}

/* Profile Details Area */
.profile-hero-grid {
  display: grid;
  grid-template-columns: 240px 1fr 220px;
  gap: 32px;
  align-items: center;
}

.profile-avatar-container {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 0 auto;
}

.profile-avatar-container::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 3px double var(--secondary-color);
  z-index: 1;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bg-white);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.profile-info,
.contact-info-text,
.business-details,
.footer-left,
.footer-right,
.footer-links {
  min-width: 0;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-name,
.profile-title,
.profile-bio,
.contact-info-val,
.about-paragraph,
.business-name,
.business-url,
.featured-name,
.connect-left-text,
.footer-copyright {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-name {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
}

.profile-title {
  color: var(--primary-color);
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-title);
}

.profile-bio {
  color: var(--text-medium);
  font-size: 0.95rem;
  max-width: 480px;
  line-height: 1.5;
}

.excellence-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #fcf6e8;
  border: 1px solid rgba(197, 155, 39, 0.2);
  border-radius: 8px;
  padding: 8px 16px;
  align-self: flex-start;
  margin-top: 4px;
}

.badge-star {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-years {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.badge-since {
  font-size: 0.75rem;
  color: var(--text-medium);
}

/* 25 Years Badge Graphic */
.trust-badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.trust-badge-svg {
  width: 100%;
  max-width: 180px;
  height: auto;
}

/* Quick Action Row (Call, WA, Email, Save) */
.quick-action-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 12px;
}

.btn-action-call {
  background-color: var(--primary-color);
  color: var(--bg-white);
}
.btn-action-call:hover {
  background-color: var(--primary-hover);
}

.btn-action-wa {
  background-color: #25d366;
  color: var(--bg-white);
}
.btn-action-wa:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-action-email {
  background-color: var(--primary-color);
  color: var(--bg-white);
}
.btn-action-email:hover {
  background-color: var(--primary-hover);
}

/* Main Cards Section: Quick Contact & About */
.contact-about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
}

.quick-contact-card {
  padding: 24px;
  height: 100%;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(142, 4, 14, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-info-text {
  display: flex;
  flex-direction: column;
}

.contact-info-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-val {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 600;
  word-break: break-all;
}

.contact-info-val a:hover {
  color: var(--primary-color);
}

.qr-code-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.qr-code-img {
  width: 100px;
  height: 100px;
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 8px;
  background: var(--bg-white);
}

.qr-code-text {
  font-size: 0.85rem;
  color: var(--text-medium);
  font-weight: 500;
  line-height: 1.4;
}

/* About Me Box */
.about-card {
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-paragraph {
  color: var(--text-medium);
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.about-paragraph:last-child {
  margin-bottom: 0;
}

/* Businesses Section */
.businesses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.business-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  min-height: 150px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(142, 4, 14, 0.15);
}

.business-logo-container {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  width: 100%;
}

.business-logo-container svg, 
.business-logo-container img {
  max-height: 100%;
  max-width: 100%;
}

.business-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.business-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.business-url {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Services / Expertise */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-4px);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-hover);
  border-color: rgba(142, 4, 14, 0.2);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(142, 4, 14, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  background-color: var(--primary-color);
  color: var(--bg-white);
  transform: scale(1.1) rotate(5deg);
}

.service-icon-box svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-name {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

/* Social Media Section */
.social-media-card {
  padding: 28px 24px;
}

.social-links-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
}

.social-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
}

.social-circle:hover {
  transform: scale(1.15) translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-circle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-whatsapp svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}
.social-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 28px;
}

/* Social brand colors */
.social-linkedin { background-color: #0077b5; }
.social-facebook { background-color: #1877f2; }
.social-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-youtube { background-color: #ff0000; }
.social-whatsapp { background-color: #25d366; }
.social-x { background-color: #000000; }
.social-google { background-color: #4285f4; }

/* Featured Initiatives */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.featured-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(197, 155, 39, 0.25);
}

.featured-icon-container {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
}

.featured-icon-container svg {
  width: 44px;
  height: 44px;
}

.featured-name {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

/* Connect Form Section - Split Layout */
.connect-block {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 360px 1fr;
}

.connect-left {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Background accents for connect section */
.connect-left::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
}

.connect-left-content {
  position: relative;
  z-index: 2;
}

.connect-left-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
}

.connect-left-title span {
  color: var(--secondary-color);
}

.connect-left-text {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.6;
}

.connect-signature-box {
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.connect-signature {
  font-family: 'Alex Brush', cursive;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--secondary-color);
  letter-spacing: 1px;
  line-height: 1;
}

/* Form Area */
.connect-right {
  padding: 48px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-full {
  grid-column: span 2;
}

.form-input {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-dark);
  background-color: #fafbfc;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--primary-color);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(142, 4, 14, 0.08);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-submit-btn {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 14px 28px;
  border-radius: 30px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(142, 4, 14, 0.15);
  transition: var(--transition-smooth);
}

.form-submit-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(142, 4, 14, 0.25);
}

.form-submit-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Footer Styling */
footer {
  background-color: #60020a;
  color: var(--bg-white);
  padding: 40px 0;
  font-size: 0.85rem;
  border-top: 4px solid var(--secondary-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-right {
  text-align: right;
}

.footer-logo,
.footer-logo-img {
  height: 42px;
  width: auto;
}

.footer-logo-img {
  background: var(--bg-white);
}

.footer-copyright {
  opacity: 0.85;
}

.footer-copyright a {
  color: var(--secondary-color);
  font-weight: 600;
}

.footer-copyright a:hover {
  color: var(--bg-white);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 20px;
  opacity: 0.85;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: var(--transition-bounce);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background-color: var(--text-dark);
  color: var(--bg-white);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid #25d366;
}

.toast-error {
  border-left: 4px solid var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .profile-hero-grid {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }
  .trust-badge-container {
    grid-column: span 2;
    margin-top: 16px;
    align-items: flex-start;
  }
  .trust-badge-svg {
    max-width: 240px;
  }
  
  .contact-about-grid {
    grid-template-columns: 1fr;
  }
  
  .businesses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .connect-block {
    grid-template-columns: 1fr;
  }
  
  .connect-left {
    padding: 36px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 32px 0;
  }

  .section-title-wrap {
    flex-wrap: wrap;
    font-size: 1.1rem;
  }
  
  .top-action-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .top-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-buttons .btn {
    width: 100%;
    padding-inline: 12px;
  }
  
  .profile-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .profile-avatar-container {
    width: 180px;
    height: 180px;
  }
  
  .profile-info {
    align-items: center;
  }
  
  .excellence-badge {
    align-self: center;
  }
  
  .trust-badge-container {
    grid-column: span 1;
    align-items: center;
  }
  
  .quick-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .connect-right {
    padding: 24px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-left {
    flex-direction: column;
  }

  .footer-right {
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .profile-header {
    padding: 24px 0;
  }

  .top-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand-logo-wrap {
    justify-content: center;
    width: 100%;
  }

  .brand-logo {
    width: min(240px, 100%);
    max-height: 52px;
  }

  .top-buttons {
    width: 100%;
    gap: 10px;
  }

  .top-buttons .btn {
    font-size: 0.82rem;
    padding: 9px 10px;
  }

  .profile-avatar-container {
    width: 170px;
    height: 170px;
  }

  .profile-name {
    font-size: 2rem;
  }

  .profile-title {
    font-size: 1rem;
  }

  .profile-bio {
    max-width: 100%;
    font-size: 0.9rem;
  }

  .excellence-badge {
    padding: 10px 12px;
  }

  .trust-badge-container img {
    width: min(100%, 280px);
    height: auto;
    margin: 0 auto;
  }

  .quick-action-row {
    gap: 10px;
  }

  .quick-action-row .btn {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .quick-contact-card,
  .about-card,
  .business-card,
  .connect-left,
  .connect-right {
    padding: 18px;
  }

  .contact-item {
    gap: 12px;
  }

  .contact-info-val {
    word-break: break-word;
  }

  .social-links-row {
    gap: 12px;
  }

  .connect-left-title {
    font-size: 1.75rem;
  }

  .connect-signature {
    font-size: 3rem;
  }

  .footer-content {
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  .quick-action-row {
    grid-template-columns: 1fr;
  }
  
  .businesses-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .qr-code-box {
    flex-direction: column;
    text-align: center;
  }
}
