/* ============================================
   gur.al - Art Deco Ceramicist Design
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0e0e1a;
    color: #d4cfc4;
    font-family: 'Lora', Georgia, serif;
    font-size: 17px;
    line-height: 1.75;
    overflow-x: hidden;
}

/* --- Persistent Top Border --- */
#top-border {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #1a3a6e 0px,
        #1a3a6e 20px,
        #c9a84c 20px,
        #c9a84c 40px
    );
    z-index: 1000;
}

/* --- Navigation --- */
#main-nav {
    position: fixed;
    top: 4px;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(14, 14, 26, 0.92);
    backdrop-filter: blur(8px);
    padding: 12px 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links li {
    position: relative;
}

.nav-links li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -18px;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #c9a84c;
    border: 1px solid #c9a84c;
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.6;
}

.nav-links a {
    font-family: 'Noto Sans', Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #7a8ea8;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #c9a84c;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: 0 auto;
}

.diamond-icon {
    display: block;
    width: 14px;
    height: 14px;
    background: #c9a84c;
    transform: rotate(45deg);
}

/* --- Sections --- */
.section {
    position: relative;
    overflow: hidden;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a2744 0%, #0e0e1a 70%);
}

.hero-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-tiles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-content.visible {
    opacity: 1;
    transform: scale(1);
}

.hero-title {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 700;
    font-size: 64px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 16px;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
}

.hero-subtitle {
    font-family: 'Noto Sans', Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: #7a8ea8;
    text-transform: uppercase;
}

/* --- Section Dividers --- */
.section-divider {
    width: 100%;
    height: 80px;
    overflow: hidden;
    opacity: 0.6;
}

.divider-pattern {
    width: 100%;
    height: 100%;
}

/* --- Plate Sections --- */
.plate-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a2744 0%, #0e0e1a 70%);
    padding: 80px 40px;
}

.plate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.plate-grid.reverse {
    direction: rtl;
}

.plate-grid.reverse > * {
    direction: ltr;
}

.plate-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.plate-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.plate-text {
    padding: 40px;
}

.section-label {
    display: block;
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: #b87333;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.plate-text h2,
.catalog-content h2 {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 20px;
}

.plate-text p {
    color: #d4cfc4;
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.75;
}

/* --- Catalog Sections --- */
.catalog-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a2744 0%, #0e0e1a 70%);
    padding: 120px 40px;
}

.catalog-content {
    max-width: 680px;
    margin: 0 auto;
}

.catalog-content p {
    color: #d4cfc4;
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.75;
}

/* --- Diamond Ornaments --- */
.diamond-ornament {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: rgba(201, 168, 76, 0.5);
    border: 1px solid #c9a84c;
    transform: rotate(45deg);
    margin: 0 4px;
}

.diamond-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}

.plate-text .diamond-ornament {
    display: block;
    margin: 0 0 20px 0;
}

/* --- Gold Leaf Gradient (links/buttons) --- */
a.gold-leaf,
.gold-leaf {
    background: linear-gradient(90deg, #c9a84c, #e0d5a0, #c9a84c);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background-position 0.3s ease;
}

a.gold-leaf:hover,
.gold-leaf:hover {
    background-position: 100% 0;
}

/* --- Section Animation States --- */
.plate-section,
.catalog-section {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.plate-section[data-direction="left"] {
    transform: translateX(-40px);
}

.plate-section[data-direction="right"] {
    transform: translateX(40px);
}

.catalog-section {
    transform: translateY(30px);
}

.plate-section.in-view,
.catalog-section.in-view {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Diamond Bounce Animation --- */
@keyframes diamondBounce {
    0% { transform: rotate(45deg) scale(0); }
    70% { transform: rotate(45deg) scale(1.2); }
    100% { transform: rotate(45deg) scale(1); }
}

.in-view .diamond-ornament {
    animation: diamondBounce 0.4s ease forwards;
}

.in-view .diamond-row .diamond-ornament:nth-child(2) {
    animation-delay: 0.1s;
}

.in-view .diamond-row .diamond-ornament:nth-child(3) {
    animation-delay: 0.2s;
}

/* --- Hero Border Animation --- */
@keyframes borderFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.border-path.animate {
    animation: borderFadeIn 0.6s ease forwards;
}

#border-top.animate { animation-delay: 0s; }
#border-right.animate { animation-delay: 0.5s; }
#border-bottom.animate { animation-delay: 1.0s; }
#border-left.animate { animation-delay: 1.5s; }

.corner-ornament {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.corner-ornament.visible {
    opacity: 1;
}

/* --- Interactive Hero Tile Grid --- */
.hero-tile-cell {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 0.5px solid rgba(46, 139, 139, 0.15);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero-tile-cell.highlight-0 {
    background-color: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.4);
}

.hero-tile-cell.highlight-1 {
    background-color: rgba(201, 168, 76, 0.05);
    border-color: rgba(201, 168, 76, 0.25);
}

.hero-tile-cell.highlight-2 {
    background-color: rgba(201, 168, 76, 0.02);
    border-color: rgba(201, 168, 76, 0.15);
}

/* --- Parallax Ornaments --- */
.parallax-ornament {
    transition: transform 0.1s linear;
}

/* --- Footer --- */
.site-footer {
    padding: 60px 40px 40px;
    text-align: center;
    background: #0e0e1a;
}

.footer-border {
    margin-bottom: 40px;
    opacity: 0.4;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-title {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c9a84c;
}

.footer-tagline {
    font-family: 'Noto Sans', Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #7a8ea8;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 16px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li:not(:last-child)::after {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero-title {
        font-size: 40px;
    }

    .plate-grid,
    .plate-grid.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }

    .plate-text {
        padding: 20px;
    }

    .plate-text h2,
    .catalog-content h2 {
        font-size: 24px;
    }

    .catalog-section {
        padding: 80px 24px;
    }

    .plate-section {
        padding: 60px 24px;
    }

    .hero-section {
        height: 100svh;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    body {
        font-size: 16px;
    }

    .catalog-content p,
    .plate-text p {
        font-size: 16px;
    }
}
