/* ==========================================================================
   Gotham Group Agency - Global Styles
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@400;600;800;900&family=Pontano+Sans&display=swap');

/* --- CSS Variables --- */
:root {
    --color-bg: #FFFFFF;
    --color-text: #000000;
    --color-border: #E5E5E5;
    
    --font-heading: 'Epilogue', sans-serif;
    --font-body: 'Pontano Sans', sans-serif;
    
    --container-max-width: 1400px;
    --container-padding: 2rem;
    
    --transition-standard: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-standard);
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    max-width: 65ch;
}

.text-lead {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 400;
    line-height: 1.4;
    max-width: 800px;
}

/* --- Layout Components --- */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}
@media (min-width: 768px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 2px solid var(--color-text);
    transition: var(--transition-standard);
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-text);
}

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

.btn-secondary:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-standard);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.main-nav, .main-nav ul {
    height: 100%;
}

.main-nav > ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-nav > ul > li {
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: var(--transition-standard);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

/* --- Mega Menu --- */
.main-nav .has-mega-menu {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 3.5rem 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.has-mega-menu:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mega-module {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 4rem;
}

.mega-module-intro h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mega-module-intro p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 350px;
    line-height: 1.5;
}

.mega-module-links-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.mega-module-links h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.mega-module-links ul {
    display: block;
    margin: 0;
    padding: 0;
}

.mega-module-links li {
    display: block;
    height: auto;
    margin-bottom: 0.75rem;
    break-inside: avoid;
    page-break-inside: avoid;
}

.mega-module-links a {
    font-size: 0.95rem;
    text-transform: none;
    font-weight: 400;
    color: #555;
    position: relative;
    display: inline-block;
}

.mega-module-links a::after {
    display: none;
}

.mega-module-links a:hover {
    color: var(--color-text);
    transform: translateX(5px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: block; }
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for fixed header */
}

.hero-content {
    max-width: 1200px;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

/* --- Sections Common --- */
.section-title-wrap {
    margin-bottom: 4rem;
}

.section-label {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
    position: relative;
    padding-left: 3rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2px;
    background-color: var(--color-text);
}

/* --- Value Proposition Banner --- */
.value-prop-banner {
    background-color: var(--color-text);
    color: var(--color-bg);
    text-align: center;
    padding: 6rem 2rem;
}

.value-prop-banner h2 {
    max-width: 1000px;
    margin: 0 auto;
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.3;
}

/* --- Cards (Capabilities / Industries) --- */
.card {
    border-top: 1px solid var(--color-text);
    padding-top: 2rem;
}

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

.card p {
    font-size: 1rem;
    color: #444;
}

/* --- Selected Work --- */
.work-item {
    display: block;
    group: work;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.work-image {
    aspect-ratio: 16 / 9;
    background-color: #f0f0f0; /* Placeholder color */
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.work-meta {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.work-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.work-category {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 6rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-statement {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.5rem;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.footer-nav h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

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

.footer-nav a {
    font-family: var(--font-body);
    font-size: 1rem;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

 / *   - - -   S c r o l l   R e v e a l   A n i m a t i o n s   - - -   * / 
 . r e v e a l   { 
         o p a c i t y :   0 ; 
         t r a n s f o r m :   t r a n s l a t e Y ( 4 0 p x ) ; 
         t r a n s i t i o n :   o p a c i t y   0 . 8 s   c u b i c - b e z i e r ( 0 . 2 5 ,   0 . 4 6 ,   0 . 4 5 ,   0 . 9 4 ) ,   t r a n s f o r m   0 . 8 s   c u b i c - b e z i e r ( 0 . 2 5 ,   0 . 4 6 ,   0 . 4 5 ,   0 . 9 4 ) ; 
         w i l l - c h a n g e :   o p a c i t y ,   t r a n s f o r m ; 
 } 
 
 . r e v e a l . a c t i v e   { 
         o p a c i t y :   1 ; 
         t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
 } 
 
 . r e v e a l - d e l a y - 1   {   t r a n s i t i o n - d e l a y :   0 . 1 s ;   } 
 . r e v e a l - d e l a y - 2   {   t r a n s i t i o n - d e l a y :   0 . 2 s ;   } 
 . r e v e a l - d e l a y - 3   {   t r a n s i t i o n - d e l a y :   0 . 3 s ;   } 
 . r e v e a l - d e l a y - 4   {   t r a n s i t i o n - d e l a y :   0 . 4 s ;   } 
 . r e v e a l - d e l a y - 5   {   t r a n s i t i o n - d e l a y :   0 . 5 s ;   } 
  
 