/*
Theme Name: Twenyone Creative Agency
Theme URI: #
Description: A custom WordPress theme converted from an HTML/CSS design.
Version: 1.0
Author: Your Name
Author URI: #
Text Domain: twenyone-creative-agency
*/

/* Your original global.css content goes here */
:root {
  --color-primary: #ff5e32;
  --color-secondary: #b6cf4f;
  --color-dark: #1a0088;
  --color-light: #f5f5f5;
  --color-text-dark: #000000;
  --color-text-light: #f5f5f5;

  --font-main: 'Inter', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  /* 'PP Editorial New' is not a standard web font. A fallback is used. */
  --font-display: 'PP Editorial New', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--color-light);
  color: var(--color-text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* --- ADJUST CONTENT FOR FIXED HEADER --- */
  padding-top: 116px; /* Adjusted to match your header's total height */
}

.container {
  max-width: 1512px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

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

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

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

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 35px;
  line-height: 1.2;
  letter-spacing: -1.05px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-light);
}

.btn-secondary {
  background-color: var(--color-light);
  color: var(--color-text-dark);
  border: 1px solid var(--color-text-dark);
}

.btn-dark {
  background-color: var(--color-dark);
  color: var(--color-light);
}

.btn-green {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
}

@media (max-width: 768px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .btn {
    font-size: 24px;
  }
}

/* CSS for section section:header */
.main-header {
  background-color: var(--color-light);
  padding-top: 27px;    /* Adjusted for 116px total height */
  padding-bottom: 28px; /* Adjusted for 116px total height */
  /* --- STICKY HEADER STYLES --- */
  position: fixed; /* This makes the header stay in place relative to the viewport */
  top: 0;          /* Aligns the header to the top of the viewport */
  width: 100%;     /* Ensures the header spans the full width of the viewport */
  z-index: 1000;   /* Keeps the header above other page content */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow */
}

.logo {
  display: flex;
  align-items: center;
  gap: 19px;
}
.logo-mark {
  position: relative;
  width: 61px;
  height: 61px;
}
.logo-mark img, .logo-mark span {
  position: absolute;
}
.logo-bg {
  width: 61px;
  height: 61px;
  top: 0;
  left: 0;
}
.logo-circle {
  width: 25.68px;
  height: 25.68px;
  top: 8.03px;
  left: 24.88px;
}
.logo-number {
  color: #000000;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  transform: rotate(14.57deg);
  top: 9.5px;
  left: 26.7px;
}
.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 37px;
  letter-spacing: -1.11px;
  color: var(--color-text-dark);
}
@media (max-width: 768px) {
  .header-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* CSS for section section:hero */
.hero-section {
  background-color: var(--color-light);
  padding-top: 150px;    /* Adjusted for 845px section height */
  padding-bottom: 150px; /* Adjusted for 845px section height */
  min-height: 845px;     /* Set minimum height */
  box-sizing: border-box;/* Ensures padding is included in height */
  overflow: hidden;
}
.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 53px;
}
.hero-image-collage {
  position: relative;
  width: 631px;
  height: 532px;
  flex-shrink: 0;
}
.hero-image-collage img {
  position: absolute;
  object-fit: cover;
  border-radius: 8px;
}
/* Image dimensions as requested */
.img-1 { /* 2:27 */
  width: 312.75px; height: 221px; top: 66px; left: 0;
}
.img-2 { /* 2:26 */
  width: 312.5px; height: 287px; top: 0; left: 265px;
}
.img-3 { /* 2:29 */
  width: 279.84px; height: 249px; top: 191px; left: 351px; z-index: 1;
}
.img-4 { /* 2:28 */
  width: 338.67px; height: 254px; top: 278px; left: 49px;
}

@media (max-width: 1200px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-image-collage {
    width: 100%;
    max-width: 631px;
    aspect-ratio: 631 / 532;
    transform: scale(0.9);
    margin-top: -30px;
  }
}
@media (max-width: 768px) {
  .hero-section {
    padding-top: 40px;
    padding-bottom: 60px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 24px;
  }
  .hero-image-collage {
    display: none;
  }
}

/* CSS for section section:services */
.services-section {
  background-color: var(--color-secondary);
  padding: 104px 0 103px 0; /* Adjusted for 845px section height */
  min-height: 845px;        /* Set minimum height */
  box-sizing: border-box;   /* Ensures padding is included in height */
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 66px;
}
.service-card {
  background-color: var(--color-light);
  border-radius: 25px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.service-image {
  position: absolute;
  top: -70px;
  height: 180px;
  width: auto;
  object-fit: contain;
}
.service-title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 35px;
  letter-spacing: -1.05px;
  margin: 100px 0 8px 0;
}
.service-subtitle {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: -0.6px;
  margin: 0 0 25px 0;
  max-width: 250px;
}
.service-price {
  font-family: var(--font-serif);
  font-size: 46px;
  letter-spacing: -1.38px;
  margin: 0 0 27px 0;
}
.service-features {
  font-family: var(--font-main);
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.6px;
  text-align: left;
  margin-bottom: 35px;
  flex-grow: 1;
}
.service-features p {
  margin: 0 0 10px 0;
  font-weight: 600;
}

.service-features li {
  margin-bottom: 5px;
}
.btn-small {
  font-size: 21px; /* Adjusted Font Size */
  font-weight: 700;
  letter-spacing: -0.63px;
  padding: 8px 24px;
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .services-section {
    padding: 100px 0 60px 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 80px;
  }
}

/* CSS for section section:faq */
.faq-section {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 93px 0 120px 0;
  min-height: 742px;     /* Set minimum height */
  box-sizing: border-box;/* Ensures padding is included in height */
}
.faq-main-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px; /* Font size as requested */
  letter-spacing: 3.84px;
  color: var(--color-secondary);
  margin: 0 0 64px 0;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.faq-item {
  border-bottom: 1px solid rgba(245, 245, 245, 0.5);
  padding-bottom: 25px;
}
.faq-question {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 32px; /* Font size as requested */
  letter-spacing: -0.96px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: '+';
  font-size: 48px;
  font-weight: 500;
  transition: transform 0.2s ease;
}
.faq-item[open] > .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 25px; /* Font size as requested */
  line-height: 1.4;
  letter-spacing: -0.75px;
  padding-top: 25px;
  max-width: 1141px;
}
@media (max-width: 768px) {
  .faq-main-title {
    font-size: 48px;
  }
  .faq-question {
    font-size: 22px;
  }
  .faq-answer {
    font-size: 18px;
  }
}

/* CSS for section section:footer */
.cta-section {
  background-color: var(--color-primary);
  padding: 140px 0 100px 0; /* Adjusted for overall footer height */
  text-align: center;
}
.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 45px;
  color: var(--color-dark);
  margin: 0;
}
.cta-subtitle {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: 40px;
  color: var(--color-dark);
  margin: 0 0 40px 0;
}
.main-footer {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding-bottom: 60px;
  /* min-height and box-sizing are applied to the combination of footer sections */
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-left {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}
.logo-mark-footer {
  position: relative;
  width: 61px;
  height: 61px;
  flex-shrink: 0;
}
.logo-mark-footer img, .logo-mark-footer span {
  position: absolute;
}
.logo-bg-footer {
  width: 61px; height: 61px; top: 0; left: 0;
}
.logo-circle-footer {
  width: 25.68px; height: 25.68px; top: 8.03px; left: 24.88px;
}
.logo-number-footer {
  color: #000000; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 16px; transform: rotate(14.57deg); top: 9.5px; left: 26.7px;
}
.copyright {
  font-size: 25px;
  letter-spacing: -0.75px;
  margin: 0 0 15px 0;
}
.footer-right {
  display: flex;
  gap: 60px;
  text-align: left;
}
.contact-info p {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.75px;
  margin: 0;
}

@media (max-width: 1024px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }
  .footer-left {
    flex-direction: column;
    align-items: center;
  }
  .footer-right {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .copyright {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .cta-section {
    padding: 100px 0 60px 0;
  }
  .cta-title {
    font-size: 32px;
  }
  .cta-subtitle {
    font-size: 24px;
  }
  .copyright, .contact-info p {
    font-size: 18px;
  }
}

/* Basic Blog Styling */
.blog-posts-container {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--color-light); /* Example: match your hero section background */
}

.site-main {
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto;
}

.entry-title {
    font-family: var(--font-main);
    font-size: 38px;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.entry-title a {
    text-decoration: none;
    color: inherit;
}

.entry-meta {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.entry-content {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #e54c25; /* A slightly darker primary color */
}

.page-numbers { /* Pagination styling */
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    font-family: var(--font-main);
}
.page-numbers li span, .page-numbers li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}
.page-numbers li a:hover, .page-numbers li span.current {
    background-color: var(--color-dark);
    color: var(--color-light);
}

/* Single Post Specific Styling */
.single-post-container {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--color-light);
}
.single-post-container .site-main {
    max-width: 900px; /* Wider for single posts */
}
/* ... (You can reuse and extend .entry-title, .entry-meta, .entry-content styles from blog posts) */
.single-post-container .entry-content p {
    margin-bottom: 1em;
}
.single-post-container .entry-content ul,
.single-post-container .entry-content ol {
    margin-bottom: 1em;
    padding-left: 20px;
}

/* Page Template Specific Styling */
.page-template-container {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--color-light);
}
.page-template-container .site-main {
    max-width: 900px;
}
/* You can reuse styles like .entry-title, .entry-content */

/* 404 Page Specific Styling */
.not-found-container {
    /* Styles applied inline, but you can define them here for better organization */
    background-color: var(--color-light);
}
.error-404 .page-title {
    font-family: var(--font-display);
    font-size: 80px;
    color: var(--color-dark);
    margin-bottom: 20px;
}
.error-404 .page-description {
    font-family: var(--font-main);
    font-size: 28px;
    line-height: 1.4;
    color: var(--color-text-dark);
    margin-bottom: 40px;
}
/* Reusing .btn styles */

.service-features ul {
  list-style: disc; /* Use 'disc' for standard solid circles, or 'circle', 'square' */
  margin-left: 20px; /* Add some left margin to make space for the bullets */
  padding-left: 0;   /* Keep padding-left 0 if margin-left is used, or adjust as needed */
}

/* Optional: You might also want to style the list items directly */
.service-features ul li {
  margin-bottom: 5px; /* Add some space between list items */
  line-height: 1.5; /* Adjust line height for readability */
}

/*
 * Main Header Alignment
 * This turns the header into a flex container.
 */
.header-container {
    display: flex;
    justify-content: flex-start; /* Aligns items to the start */
    align-items: center; /* Vertically aligns all items to the middle */
    gap: 40px; /* Creates space between the logo and the right-side group */
}

/* Style for the "Book Now" button in the header */
.header-container > .btn.btn-primary {
    width: 163px;
    height: 44px;
    padding: 0;
    font-size: 18px; /* Adjusted font size to fit new dimensions */
    flex-shrink: 0;
}

/*
 * Main Navigation Element
 * The key change to move the menu to the right.
 */
.main-navigation {
    margin-left: auto; /* This pushes the nav menu (and everything after it) to the far right */
}


/*
 * Menu Styles (UL element)
 * This targets the <ul> element of your menu.
 */
.header-menu {
    display: flex; /* Aligns menu items in a row */
    align-items: center;
    list-style-type: none; /* Removes the bullet points */
    margin: 0;
    padding: 0;
    gap: 30px; /* Adjust the space between "Our Services" and "Read our blogs" */
}

/*
 * Menu Link (A element) Styles
 * This styles the actual text links.
 */
.header-menu a {
    font-family: 'Inter', sans-serif; /* Uses the font you imported in header.php */
    font-size: 25px; /* << FONT SIZE CHANGED AS REQUESTED */
    font-weight: 500;
    color: #222222; /* A dark grey/black color */
    text-decoration: none; /* Removes the underline */
    display: block; /* Makes the whole area clickable */
}

/* Optional: Add a hover effect for better UX */
.header-menu a:hover {
    color: #d95d39; /* Example hover color */
}

/* First, hide the hamburger on desktop */
.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Ensures it's above other content */
}

/* Style the three lines of the hamburger icon */
.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Hide the "Book Now!" button that belongs to the mobile slide-out menu on desktop */
.btn-mobile-menu {
    display: none;
}

/*
 * DESKTOP FIX:
 * This is the most important rule. It hides the button meant for the
 * mobile slide-out menu from appearing on the desktop header.
*/
.btn-mobile-menu {
    display: none !important;
}

/* ==========================================================================
   UPDATED HERO SECTION STYLES (for equal spacing)
   ========================================================================== */

/* Styles the main heading */
.hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: 50px;
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 30px; /* This sets the space below the title */
}

/* Styles the container for the new description paragraphs */
.hero-description {
    display: flex;
    flex-direction: column;
    gap: 30px; /* UPDATED: Changed from 20px to 30px to match the space above */
    line-height: 1.5;
    max-width: 600px;
    margin-bottom: 30px;
}

/* Styles the "Twenyone is a creative..." line */
.hero-intro {
    font-family: 'Inter', sans-serif;
    font-size: 33px;
    margin: 0;
}

/* Styles the "We design stories..." line */
.hero-philosophy {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.03em;
    margin: 0;
}

/* This ensures the buttons are side-by-side and sized correctly */
.hero-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.hero-actions .btn {
    font-size: 22px;
    padding: 12px 30px;
    white-space: nowrap;
}

/* Sizing for Hero Buttons */
.hero-actions .btn-primary {
    width: 235px;
    height: 57px;
    padding: 0; /* Override default padding to use fixed dimensions */
}

.hero-actions .btn-secondary {
    width: 182px;
    height: 57px;
    padding: 0; /* Override default padding to use fixed dimensions */
}


/* ==========================================================================
   AUTO-SLIDER FOR SERVICES (with manual scroll enabled)
   ========================================================================== */

.scrolling-wrapper {
    /* UPDATED: Changed from 'hidden' to 'auto' to allow manual scrolling */
    overflow-x: auto;
    
    /* This will hide the default scrollbar for a cleaner look */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
}

/* Hides the scrollbar for Chrome, Safari and Opera */
.scrolling-wrapper::-webkit-scrollbar {
    display: none;
}

.scrolling-track {
    display: flex;
    gap: 40px;
    width: calc((395px + 40px) * 12); 
    animation: scroll 80s linear infinite;
    /* The ":hover" rule that paused the animation has been removed */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-435px * 6));
    }
}

/* Styles for the service cards based on your image */
.scrolling-track .service-card {
    width: 395px;
    height: 638px;
    box-sizing: border-box; /* ADD THIS LINE */
    flex-shrink: 0;
    background-color: var(--color-light);
    border-radius: 25px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.scrolling-track .service-image {
    position: static;
    height: 120px;
    margin-bottom: 20px;
}

.scrolling-track .service-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 35px;
    margin: 0 0 8px 0;
}

.scrolling-track .service-subtitle {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-size: 20px;
    margin: 0 0 25px 0;
}

.scrolling-track .service-price {
    font-family: 'Instrument Serif', serif;
    font-size: 46px;
    font-style: italic;
    margin: 0 0 27px 0;
}

.scrolling-track .service-features {
    text-align: left;
    margin-bottom: 35px;
    flex-grow: 1;
}

.scrolling-track .service-features p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 10px;
}

.scrolling-track .service-features ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
    font-size: 16px;
}

.scrolling-track .btn-small {
    width: 148px;  /* Width as requested */
    height: 42px; /* Height as requested */
    padding: 0;
    font-size: 21px; /* Font size as requested */
    font-weight: 700;
}

.scrolling-track .btn-purple {
    background-color: var(--color-dark);
    color: var(--color-light);
}

/* This removes side padding ONLY from the services section container */
.services-section .container {
    padding-left: 0;
    padding-right: 0;
}

/* ==========================================================================
   CONSOLIDATED MOBILE & RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 800px) {

    /* When the menu is open, position it absolutely below the header */
    .main-navigation.is-open {
        display: flex;
        position: absolute;
        top: 114px; /* The height of your header */
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 20px;
        transform: translateX(0) !important;
    }

    /* Make the menu items stack vertically */
    .main-navigation.is-open .header-menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
    }

    .main-navigation.is-open .header-menu a {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Animate hamburger to an 'X' when active */
    .hamburger-menu.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .hamburger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* FORCE HAMBURGER VISIBILITY ON MOBILE */
    .hamburger-menu {
        display: block !important;
    }

    /* FINAL MOBILE HEADER STYLES */
    .header-container {
        display: flex;
        justify-content: space-between; /* Pushes logo to left, hamburger to right */
        align-items: center;
    }
    
    .logo-text {
        display: inline-block !important;
    }

    .main-navigation {
        display: none;
    }

    /* FINAL OVERRIDE & BUTTON FIXES */
    /* This rule is now more specific: It ONLY hides the "Book Now" button
       that is a direct child (>) of the main header container. */
    .header-container > .btn.btn-primary {
        display: none !important;
    }

    /* This rule ensures the "Book Now" button INSIDE the open menu is visible. */
    .main-navigation.is-open .btn-mobile-menu {
        display: block !important;
    }
}