/*
Theme Name: Amal & Company Theme
Theme URI: https://amalandcompany.com
Author: Amal & Company
Author URI: https://amalandcompany.com
Description: A professional WordPress theme for Amal & Company - Scaling Social Impact. Features customizable colors, sections, photos, and easy editing through WordPress Customizer.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amal-theme
Tags: custom-logo, custom-menu, featured-images, theme-options, customizer
*/

/* ==========================================================================
   CSS Variables - Customizable via WordPress Customizer
   ========================================================================== */
:root {
  --blue: #5faed1;
  --blue-light: #7fc2de;
  --dark-blue: #0b2d41;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--white); color: var(--gray-600); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 4%; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: 'DM Serif Display', serif; font-weight: 400; color: var(--dark-blue); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
p { color: var(--gray-600); line-height: 1.8; margin-bottom: 1rem; }
em { font-style: italic; color: var(--blue); }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.site-logo img {
  height: 60px;
  width: auto;
}

.main-navigation {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--blue);
}

/* Navigation Button Styles - Client Portal & Contact */
.main-navigation a.btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

.main-navigation a.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-600) !important;
}

.main-navigation a.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue) !important;
  background: transparent;
  transform: none;
  box-shadow: none;
}

.main-navigation a.btn:not(.btn-outline) {
  background: var(--blue);
  color: var(--white) !important;
}

.main-navigation a.btn:not(.btn-outline):hover {
  background: var(--dark-blue);
  transform: none;
  box-shadow: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark-blue);
  transition: all 0.3s;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn,
button[type="submit"],
input[type="submit"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--blue);
  color: var(--white) !important;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(95, 174, 209, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue) !important;
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white) !important;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-white {
  background: var(--white);
  color: var(--blue) !important;
}

.btn-white:hover {
  background: var(--gray-100);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 4% 4rem;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 30%, var(--gray-50) 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(95, 174, 209, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.hero-label {
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 2rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--blue);
  background: var(--white);
  border-radius: 50px;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Company Photos Gallery
   ========================================================================== */
.company-photos {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-200);
}

.company-photos.no-border {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  margin-bottom: 4rem;
}

.company-photos-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-align: center;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.photo-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(11, 45, 65, 0.2);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-item:hover img {
  transform: scale(1.05);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(11, 45, 65, 0.9) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay p {
  color: var(--white);
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================================================
   Page Header
   ========================================================================== */
.page-header {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 4% 4rem;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 50%, var(--gray-50) 100%);
}

.page-header-content {
  max-width: 800px;
}

.page-label {
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--blue);
  background: var(--white);
  border-radius: 50px;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.15rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 6rem 4%;
}

.section-white {
  background: var(--white);
}

.section-light {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--blue);
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
}

/* ==========================================================================
   Photo Banner Section
   ========================================================================== */
.photo-section {
  width: 100%;
  height: 50vh;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.photo-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-section .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(11, 45, 65, 0.8) 0%, rgba(11, 45, 65, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem;
}

.photo-section .overlay h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--white);
}

.photo-section .overlay p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 45, 65, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.service-card .features {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  list-style: none;
}

.service-card .features li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 0.9rem;
}

.service-card .features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  text-align: center;
  padding: 5rem 4%;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.95);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   About Grid
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h3 {
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.about-content h3:first-child {
  margin-top: 0;
}

.about-image {
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.value-card {
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
}

.value-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.value-card h4 {
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.process-step {
  text-align: center;
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  transition: all 0.3s;
}

.process-step:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.process-step-number {
  font-family: 'DM Serif Display', serif;
  font-size: 4rem;
  color: var(--blue);
  opacity: 0.3;
  line-height: 1;
}

.process-step h4 {
  margin: 1rem 0;
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-featured {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.team-featured-image {
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--blue);
}

.team-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.team-featured-content h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.team-featured-content .role {
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: block;
}

.team-featured-content blockquote {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--dark-blue);
  padding-left: 1.5rem;
  border-left: 3px solid var(--blue);
  margin-top: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  text-align: center;
}

.team-card-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gray-200);
  transition: border-color 0.3s;
}

.team-card:hover .team-card-image {
  border-color: var(--blue);
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-card .role {
  color: var(--blue);
  font-size: 0.9rem;
}

/* ==========================================================================
   Case Studies
   ========================================================================== */
.case-studies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.case-study {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.case-study:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.case-study-image {
  height: 200px;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.case-study:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-content {
  padding: 2rem;
}

.case-study-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(95, 174, 209, 0.1);
  border: 1px solid rgba(95, 174, 209, 0.3);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.case-study h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.case-study-results {
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 1rem;
}

.case-study-results span {
  display: block;
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background: rgba(95, 174, 209, 0.1);
  border: 1px solid rgba(95, 174, 209, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
}

.contact-item-content h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item-content p {
  margin: 0;
}

.contact-item-content a:hover {
  color: var(--blue);
}

/* Contact Form */
.contact-form {
  background: var(--gray-50);
  padding: 3rem;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 4rem 4% 2rem;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 1rem;
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--dark-blue);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: var(--gray-600);
}

.social-links a:hover svg {
  fill: var(--white);
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */
.wp-block-image img {
  border-radius: 12px;
}

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

/* Admin bar fix */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid,
  .case-studies {
    grid-template-columns: 1fr;
  }
  
  .about-grid,
  .contact-grid,
  .team-featured {
    grid-template-columns: 1fr;
  }
  
  .values-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .photos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 4%;
  }
  
  .main-navigation ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gray-100);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    gap: 0;
  }
  
  .main-navigation ul.active {
    display: flex;
  }
  
  .main-navigation li {
    width: 100%;
  }
  
  .main-navigation a {
    display: block;
    padding: 0.75rem 1rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero {
    padding: 7rem 4% 3rem;
    min-height: auto;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .team-featured-image {
    height: 300px;
  }
}
